package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 客户退款订单审核记录
 */
@Data
@TableName("t_order_refund_record")
public class UserOrderRefundRecordEntity implements Serializable {

    @TableId(value = "pk_recordId", type = IdType.AUTO)
    private long recordId;

    @TableField("r_refundRef")
    private long refundRef;//退货订单唯一编号

    @TableField("r_reason")
    private String reason;//退货原因


    @TableField("r_date")
    private LocalDateTime date = LocalDateTime.now();//退货日期

    @TableField("r_cause")
    private String cause;//审核未通过原因

    @TableField("r_verifyStatus")
    private int verifyStatus  = 0;//审核状态 0--待审核  1---审核通过 2 ----审核不通过


    @TableField("r_verifyName")
    private String verifyName ;

    @TableField("r_totalPrice")
    private double totalPrice;//退款总价格

    @TableField("r_verifyTime")
    private LocalDateTime verifyTime = LocalDateTime.now();//审核时间

    @TableField(exist = false)
    private UserOrderRefundEntity userOrderRefundEntity;//审核记录对应的订单退款
}
